<template>
<div>
  <div class="title">周末去哪儿</div>
  <ul>
    <li class="item border-bottom" v-for="item in weekendList" :key="item.id">
      <div class="item-img-wrapper">
        <img class="item-img" :src="item.imgUrl" alt="" />
      </div>
      <div class="item-info">
        <p class="item-title">{{item.title}}</p>
        <p class="item-desc">{{item.desc}}</p>
      </div>
    </li>
  </ul>
</div>
</template>

<script>
export default {
  name: 'HomeWeekend',
  props: {
    weekendList: Array
  }
  // data () {
  //   return {
  //     weekendList: [
  //       {
  //         id: '0001',
  //         imgUrl: 'https://imgs.qunarzz.com/sight/source/1603/6d/2f67ae0659f41f.jpg_r_640x214_bf6cbd0b.jpg',
  //         title: '北京-东京 5天跟团游',
  //         desc: '欢乐畅想 东京+横滨+富士山+镰仓+江之岛神社'
  //       },
  //       {
  //         id: '0002',
  //         imgUrl: 'https://imgs.qunarzz.com/sight/source/1811/7e/476589267ebb41.jpg_r_640x214_bf599709.jpg',
  //         title: '尼泊尔9晚10天',
  //         desc: '悬崖酒店+超视觉两大歌舞+京津冀免费联运+骑大象'
  //       },
  //       {
  //         id: '0003',
  //         imgUrl: 'https://imgs.qunarzz.com/sight/source/1811/f3/86173f863bef61.jpg_r_640x214_52b003ac.jpg',
  //         title: '【家庭游】升级碧桂园',
  //         desc: '张家界国家森林公园天门山玻璃桥凤凰双飞6日丨赠魅力湘西'
  //       }
  //     ]
  //   }
  // }
}
</script>

<style lang="stylus" scoped>
@import '~styles/mixins.styl'
.title
  line-height: .8rem
  background: #eee
  text-indent: .2rem
.item-img-wrapper
  width: 100%
  height:0
  overflow:hidden
  padding-bottom: 37.09%
  .item-img
    width: 100%
.item-info
  padding:.1rem
  .item-title
    line-height:.54rem
    font-size: .32rem
    ellipsis()
  .item-desc
    line-height:.4rem
    font-size: .28rem
    color:#ccc
    ellipsis()
</style>
